#ifndef USER_H
#define USER_H
#include <QObject>
#include <QMap>
#include"string"
using namespace std;
class User: public QObject
{
    Q_OBJECT
public:
   explicit User(QObject *parent = 0);
    Q_INVOKABLE QString findUserAuthority(QString loginname,QString password);
    Q_INVOKABLE int getauthority(void);
    Q_INVOKABLE void setauthority(int autho);
    Q_INVOKABLE int getboolnum(void);
    Q_INVOKABLE void setboolnum(int autho);
private:
    int authority=0;
    int boolnum=0;
};
#endif // USER_H
